package com.hzhjhh.view.manageView.menus;

import java.awt.Color;

import javax.swing.JMenu;
import javax.swing.JMenuItem;

import com.hzhjhh.view.manageView.menus.purchase.PaymentOrderDialog;
import com.hzhjhh.view.manageView.menus.purchase.PurchaseOrderDialog;


/**
 * 菜单栏初始化-采购
 * 
 * @author 12083
 *
 */
public class MPurchase {

	public static JMenu init() {
		JMenu purchase = new JMenu();
		purchase.setBackground(Color.pink);
		purchase.setText("采购");

		JMenuItem purchaseOrder = new JMenuItem();
		purchaseOrder.setText("采购单");
		purchase.add(purchaseOrder);
		purchaseOrder.addActionListener(event -> {
			PurchaseOrderDialog stock = new PurchaseOrderDialog();
		});
		
		JMenuItem payOrder = new JMenuItem();
		payOrder.setText("付款单");
		purchase.add(payOrder);
		payOrder.addActionListener(event -> {
			PaymentOrderDialog paymentList = new PaymentOrderDialog();
		});
		return purchase;
	}
}
